# -*- coding: utf-8 -*-
# File : buy_order.py
# Author: taoyahui
# Date : 2021/10/17
from datetime import datetime


class BuyOrder:
    order_no = 0
    buy_no = 0
    order_type = 0
    food_id = 0
    price = 0
    num = 0
    update_time = datetime.now()
    user_address = ''

    def __init__(self, order_no, buy_no, order_type, food_id, price, num, update_time, user_address):
        self.order_no = order_no
        self.buy_no = buy_no
        self.order_type = order_type
        self.food_id = food_id
        self.price = price
        self.num = num
        self.update_time = update_time
        self.user_address = user_address

